- /* slodbrem.cpp by K.Tsuru */
- // function ID = 211 DRADIX
- /***************
- SLong class
- operator%() m%d
- ****************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SLong operator%(const SLong& m, double n){
- if(fabs(n) == 1.0) return SLong(m.Type(), minArraySize);// return 0.0;
- if( fabs(n) <= m.SlOpMaxValue() ){
- ulong p = (ulong)fabs(n);
- long rem;
- SLong result(m.Type(), 0);
- LsDiv(m, p, &rem);
- result = m.Sign(211)*labs(rem);
- return result;
- }
- return LLDiv(m, n, 1).rem;
- }
slodbrem.cpp : last modifiled at 2015/11/27 14:21:08(506 bytes)
created at 2017/10/07 10:26:50
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).